class GetMyPromotion {
  String id;
  String userId;
  String createTime;
  String headimgurl;
  String loginName;
  String userTariffCode;
  String userName;
  String rank;
  String levelName;
  int teamnum;
  int orderNum;
  num orderSum;

  GetMyPromotion(
      {this.id,
      this.userId,
      this.createTime,
      this.headimgurl,
      this.loginName,
      this.userTariffCode,
      this.userName,
      this.rank,
      this.levelName,
      this.teamnum,
      this.orderNum,
      this.orderSum});

  GetMyPromotion.fromJson(Map<String, dynamic> json) {
    id = json['id'];
    userId = json['user_id'];
    createTime = json['create_time'];
    headimgurl = json['headimgurl'];
    loginName = json['login_name'];
    userTariffCode = json['user_tariff_code'];
    userName = json['user_name'];
    rank = json['rank'];
    levelName = json['level_name'];
    teamnum = json['teamnum'];
    orderNum = json['order_num'];
    orderSum = json['order_sum'];
  }

  Map<String, dynamic> toJson() {
    final Map<String, dynamic> data = new Map<String, dynamic>();
    data['id'] = this.id;
    data['user_id'] = this.userId;
    data['create_time'] = this.createTime;
    data['headimgurl'] = this.headimgurl;
    data['login_name'] = this.loginName;
    data['user_tariff_code'] = this.userTariffCode;
    data['user_name'] = this.userName;
    data['rank'] = this.rank;
    data['level_name'] = this.levelName;
    data['teamnum'] = this.teamnum;
    data['order_num'] = this.orderNum;
    data['order_sum'] = this.orderSum;
    return data;
  }
}
